<template>
	<view class="money-box">
		<text v-if="hasLogin || (!hasLogin && isShowPriceUnlogin == 1)" class="price">{{goodsPrice}}</text>
		<text class="price" v-else>登录查看</text>
	</view>
</template>

<script>
	export default {
		name: "my-show-price",
		props: {
			hasLogin: {
				type: Boolean,
				default: false
			},
			isShowPriceUnlogin: {
				type: Number | String,
				default: 1
			},
			priceShowWay: {
				type: Number | String,
				default: 0
			},
			goodsPrice: {
				type: Number | String,
				default: 0
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.money-box {
		color: $base-color;

		.price {
			display: inline-block;
			// color: #300313;
			font-size: $my-font-size-base;

			&:before {
				font-size: $my-font-size-sm;
				display: inline-block;
				content: '￥';
			}
		}
	}
</style>
